package com.jumei.flume.bo;

import com.jumei.flume.annotation.Column;
import com.jumei.flume.annotation.Table;

/**
 * 神策kafka消息
 * 
 * @author yihongx
 *
 */
@Table(name = "shuabao_sensor_events", addTimeField = "kudu_updated_time")
public class PutAdMessage {
	/**
	 * 主键
	 */
	@Column(isParmaryKey = true)
	private Long userId;
	
	@Column(isParmaryKey = true)
	private Integer createDate;
	
	@Column(isParmaryKey = true)
	private String distinctId;

	@Column(isParmaryKey = true)
	private Long time;
	
	@Column(isParmaryKey = true)
	private String event;

	@Column(isParmaryKey = true)
	private Long kafka_offset;

	@Column
	private Long kudu_updated_time;

	@Column
	private String project;

	@Column
	private String app_version;

	@Column
	private String imei;

	@Column
	private String os;
	
	@Column
	private String ip;

	@Column
	private Integer is_first_time;

	@Column(isSensorMapping = true)
	private String app_source;

	@Column(isSensorMapping = true)
	private String network;

	@Column(isSensorMapping = true)
	private String device_id;

	@Column(isSensorMapping = true)
	private String url;

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Integer getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Integer createDate) {
		this.createDate = createDate;
	}

	public String getDistinctId() {
		return distinctId;
	}

	public void setDistinctId(String distinctId) {
		this.distinctId = distinctId;
	}

	public Long getTime() {
		return time;
	}

	public void setTime(Long time) {
		this.time = time;
	}

	public String getEvent() {
		return event;
	}

	public void setEvent(String event) {
		this.event = event;
	}

	public Long getKafka_offset() {
		return kafka_offset;
	}

	public void setKafka_offset(Long kafka_offset) {
		this.kafka_offset = kafka_offset;
	}

	public Long getKudu_updated_time() {
		return kudu_updated_time;
	}

	public void setKudu_updated_time(Long kudu_updated_time) {
		this.kudu_updated_time = kudu_updated_time;
	}

	public String getProject() {
		return project;
	}

	public void setProject(String project) {
		this.project = project;
	}

	public String getApp_version() {
		return app_version;
	}

	public void setApp_version(String app_version) {
		this.app_version = app_version;
	}

	public String getImei() {
		return imei;
	}

	public void setImei(String imei) {
		this.imei = imei;
	}

	public String getOs() {
		return os;
	}

	public void setOs(String os) {
		this.os = os;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public Integer getIs_first_time() {
		return is_first_time;
	}

	public void setIs_first_time(Integer is_first_time) {
		this.is_first_time = is_first_time;
	}

	public String getApp_source() {
		return app_source;
	}

	public void setApp_source(String app_source) {
		this.app_source = app_source;
	}

	public String getNetwork() {
		return network;
	}

	public void setNetwork(String network) {
		this.network = network;
	}

	public String getDevice_id() {
		return device_id;
	}

	public void setDevice_id(String device_id) {
		this.device_id = device_id;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@Override
	public String toString() {
		return "刷宝消息:{" +
				"userId=" + userId +
				", createDate=" + createDate +
				", distinctId='" + distinctId + '\'' +
				", time=" + time +
				", event='" + event + '\'' +
				", kafka_offset=" + kafka_offset +
				", kudu_updated_time=" + kudu_updated_time +
				", project='" + project + '\'' +
				", app_version='" + app_version + '\'' +
				", imei='" + imei + '\'' +
				", os='" + os + '\'' +
				", ip='" + ip + '\'' +
				", is_first_time=" + is_first_time +
				", app_source='" + app_source + '\'' +
				", network='" + network + '\'' +
				", device_id='" + device_id + '\'' +
				", url='" + url + '\'' +
				'}';
	}
}
